/**
 * @ author: 汪孟苹
 */
define(["jquery","bbcare","oms_config/root",
    "scprit/followup/app/datatable/datatable.ui.js",
    "scprit/followup/app/dataCenter/dataCenter.servers.js"],
    function ($,$bb,$root,$datatableUi,$dataCenterServers) {
    var dataCenter = {};

    dataCenter.init = function(){
        $datatableUi.init({
            "id": "dataCenter",
            "options": $dataCenterServers.getOptions()
        });
        /* 列的显示与隐藏 */
        var config = $root.init();
        if(!config.dom.dataCenterAppActFlag){
            $datatableUi.table.api().columns('.appActFlag').visible(false);
        }
    }

    return dataCenter;
});